package com.pond.pond.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 鱼塘评价图片对象 pond_comment_image
 *
 * 用于存储用户对鱼塘评价附带的多张图片信息
 *
 * @author ruoyi
 * @date 2025-07-10
 */
@Getter
@Setter
public class PondCommentImage implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 图片ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 关联的评价ID（pond_comment表的id） */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commentId;

    /** 图片URL地址 */
    private String imageUrl;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", timezone = "GMT+8")
    private Date createTime;
}
